using System;
using MinimalistFoodStreet.BackEnd.Infrastructure.EFCore;
using MinimalistFoodStreet.BackEnd.Infrastructure.Dtos.Request.Tables;

namespace MinimalistFoodStreet.BackEnd.Server.Server.RequestExtend.Tables 
{
	public static class InfosRequestCreateExtend 
	{
		public static Info ToCreateEntity(this RequestCreateInfosDto dto)
		{
			return new Info 
			{

				IContent = dto.content,
				ISendMan = dto.sendMan,
				IReceiveMan = dto.receiveMan,
				IIsRead = dto.isRead,
			};
		}
	}
}